package com.localjoycommunity.cpdj.project.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.localjoycommunity.cpdj.framework.aspectj.lang.annotation.Excel;
import com.localjoycommunity.cpdj.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 学习资料对象 sys_learn_data
 *
 * @author leepandar
 * @date 2020-10-30
 */
public class SysLearnData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long learnId;

    /**
     * 资料名称
     */
    @Excel(name = "资料名称" )
    private String title;

    /**
     * 资料缩略图
     */
    @Excel(name = "资料缩略图" )
    private String cover;

    /**
     * 资料简介
     */
    @Excel(name = "资料简介")
    private String describes;

    /**
     * seo标题
     */
    private String seoTitle;

    /**
     * seo关键词
     */
    private String seoKeyWord;

    /**
     * seo描述
     */
    private String seoDescribe;

    /**
     * 阅读数
     */
    @Excel(name = "阅读数" )
    private Long readNum;

    /**
     * 下载数
     */
    @Excel(name = "下载数" )
    private Long downloadNum;

    /**
     * 点赞数
     */
//    @Excel(name = "点赞数" )
    private Long likeNum;

    /**
     * 上架状态，0：未上架  1：已上架
     */
    @Excel(name = "上架状态，0：未上架  1：已上架" )
    private String shelfStatus;

    @TableField(exist = false)
    private int isDig;

    /**
     * 1:学习党章  2：学习精神
     */
    private String dataType;

    public int getIsDig() {
        return isDig;
    }

    public void setIsDig(int isDig) {
        this.isDig = isDig;
    }

    public Long getLearnId() {
        return learnId;
    }

    public void setLearnId(Long learnId) {
        this.learnId = learnId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public String getSeoTitle() {
        return seoTitle;
    }

    public void setSeoTitle(String seoTitle) {
        this.seoTitle = seoTitle;
    }

    public String getSeoKeyWord() {
        return seoKeyWord;
    }

    public void setSeoKeyWord(String seoKeyWord) {
        this.seoKeyWord = seoKeyWord;
    }

    public String getSeoDescribe() {
        return seoDescribe;
    }

    public void setSeoDescribe(String seoDescribe) {
        this.seoDescribe = seoDescribe;
    }

    public Long getReadNum() {
        return readNum;
    }

    public void setReadNum(Long readNum) {
        this.readNum = readNum;
    }

    public Long getDownloadNum() {
        return downloadNum;
    }

    public void setDownloadNum(Long downloadNum) {
        this.downloadNum = downloadNum;
    }

    public String getShelfStatus() {
        return shelfStatus;
    }

    public void setShelfStatus(String shelfStatus) {
        this.shelfStatus = shelfStatus;
    }

    public Long getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Long likeNum) {
        this.likeNum = likeNum;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("learnId", getLearnId())
                .append("title", getTitle())
                .append("cover", getCover())
                .append("describes", getDescribes())
                .append("seoTitle" , getSeoTitle())
                .append("seoKeyWord" , getSeoKeyWord())
                .append("seoDescribe" , getSeoDescribe())
                .append("readNum" , getReadNum())
                .append("downloadNum" , getDownloadNum())
                .append("shelfStatus" , getShelfStatus())
                .append("createBy" , getCreateBy())
                .append("createTime" , getCreateTime())
                .append("updateBy" , getUpdateBy())
                .append("updateTime" , getUpdateTime())
                .append("remark" , getRemark())
                .toString();
    }
}
